package xy.http.common;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Map;


@Component
@RequiredArgsConstructor
public class RequestContext {

    private final Map<String, RequestUtil> requestUtilMap;

    public String get( String url, String uploadServiceName) {
        // 执行特点的上传策略
        return requestUtilMap.get(uploadServiceName).get(url);
    }
}
